// import { anim, play } from '@feidao/animation';
import anim from '@dfeidao/atom-web/animation/anim';
import play from '@dfeidao/atom-web/animation/play';
import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';

export default async function a001(fd: IFeidaoAiBrowserComponent) {
	// debugger;
	const mainArea = document.getElementById('right1');

	[mainArea].map((e) => {
		e.addEventListener('click', () => {
			const toem_ditch_edit_box = document.getElementById('zj-000004');
			if (toem_ditch_edit_box.style.right === '0px') {
				play(anim(toem_ditch_edit_box, {
					repeat: 0,
					duration: 800,
					units: 'px',
					delay: 0,
					easing: 'ease', // 动画效果 默认为'ease'
					precent: 0//  动画暂停时长 单位是ms
				}, {
						right: {
							start: 0,
							end: -676
						}
					}));
			}
		});
	});
}
